<?php

/**
 * ProvidenciaAcao form.
 *
 * @package    form
 * @subpackage ProvidenciaAcao
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class ProvidenciaAcaoForm extends BaseProvidenciaAcaoForm
{
  public function configure()
  {
    $this->setWidgets(array(
      'descricao'   => new sfWidgetFormInput(array(), array('style' => 'width: 350px', 'class' => 'campoobrigatorio')),
    ));

    $this->setValidators(array(
      'descricao'   => new sfValidatorString(array('required' => true)),
    ));
	
	$this->widgetSchema->setLabels(array(
	  'descricao' => ' ',
	));
	
	$this->validatorSchema['descricao']->setMessage('required', 'Descrição obrigatória');

    $this->widgetSchema->setNameFormat('providencia[%s]');

  }
}